package com.aooci.ordercat.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@Table(name = "SORT_GROUP")
@NamedQuery(name = "SORT_GROUP.selectSortGroupBySelectable", query = "SELECT sg FROM SortGroup sg WHERE sg.selectable = :selectable ORDER BY sg.id")
public class SortGroup extends IdentityEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Column(name = "LABEL")
	private String label;

	@Column(name = "SELECTABLE")
	private boolean selectable;
	
	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return the selectable
	 */
	public boolean isSelectable() {
		return selectable;
	}

	/**
	 * @param selectable the selectable to set
	 */
	public void setSelectable(boolean selectable) {
		this.selectable = selectable;
	}
}
